<template>
  <div class="md-shared">
    <md-shared-header />
    <main class="md-shared-main" :style="{paddingTop: !$store.state.specialRouters.includes($route.path) ? '30px' : '0'}">
      <router-view />
    </main>
    <md-shared-footer />
  </div>
</template>

<script>
import MdSharedHeaderComponent from './header'
import MdSharedFooterComponent from './footer'
export default {
  name: 'MdSharedComponent',
  components: {
    'md-shared-header': MdSharedHeaderComponent,
    'md-shared-footer': MdSharedFooterComponent
  }
}
</script>

<style lang="less" scoped>
.md-shared {
  width: 100%;
  box-sizing: border-box;
  padding-top: @md-header-height;
  .md-shared-main {
    width: 100%;
    min-width: 1200px;
    min-height: calc(100vh - 262px);
    background: #f5f7fa;
    box-sizing: border-box;
    margin: 0px auto;
  }
}
</style>
